package com.sbxBase.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("session")
public class Session implements Serializable {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("info")
    private String info;

    @ApiModelProperty(value = "创建时间", example = "2023-02-08 21:44:00")
    private Date created;

    @ApiModelProperty(value = "更新时间", example = "2023-02-08 21:44:00")
    private Date updated;

}
